package com.zzw.bridge.system.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户
 *
 * @author XiaoJie
 * @email
 * @date 2025-05-13 09:43:17
 */
@Schema(name = "用户表")
@Data
public class UserDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Schema(name = "用户名")
	@NotBlank(message ="用户名不能为空！" )
	private String username;

	@Schema(name = "密码")
	@NotBlank(message ="密码不能为空！" )
	private String password;

	@Schema(name = "姓名")
	private String realName;

	@Schema(name = "邮箱")
	private String email;

	@Schema(name = "手机号")
	private String mobile;

	@Schema(name = "机构ID")
	private Long orgId;

	@Schema(name = "权限（0-普通；1-超级管理员；2-二级管理员）")
	private Integer superAdmin;

	@Schema(name = "状态（0-停用；1-正常）")
	private Integer status;

	@Schema(name = "版本号")
	private Integer version;

	@Schema(name = "删除标识（0-正常；1-已删除）")
	private Integer deleted;

	@Schema(name = "创建者")
	private String creator;

	@Schema(name = "创建时间")
	private Date createTime;

	@Schema(name = "更新者")
	private String updater;

	@Schema(name = "更新时间")
	private Date updateTime;

}
